package com.mc.code.mapper;

import com.mc.code.entity.CodeUsers;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface LoginMapper {
//    登录
    List<CodeUsers> login(String username);

    //    添加用户信息
    void registerUser(CodeUsers codeUsers);


    //    查询数据库中最大用户编号
    int maxUserNo(int id);
    //    查询数据库中最大ID
    int maxId();

    int skillNet();

    int skillJava();

    int skillPhp();

    int skillAsp();

    int skillC();

    int skillBigdata();

    int countWeb();

    int countApp();


    int countWx();

    int countRoutine();

    int countHtml();

    int countOther();

    String registerUserName(@Param("username") String username);
}
